﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;
using COMOSOFT.Class;
using System.Data;

namespace COMOSOFT.JobManagement.Report
{
    public partial class JobPrintItem : DevExpress.XtraReports.UI.XtraReport
    {
        ClassShare cls = new ClassShare("JobPrintItem");
        int JID, EID;
        public JobPrintItem(int JID, int EID)
        {
            this.JID = JID;
            this.EID = EID;
            InitializeComponent();
            COMOSOFT.JobManagement.Dataset.DataSet_JobManagementTableAdapters.sp_JobPrintItemTableAdapter adt = new Dataset.DataSet_JobManagementTableAdapters.sp_JobPrintItemTableAdapter();
            adt.Fill(this.dataSet_JobManagement1.sp_JobPrintItem, JID, EID);
        }

        private void reportHeaderBand1_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            if (ClassShare.Image != "")
            {
                picture_Avartar.Image = Image.FromFile(ClassShare.lcSystem + ClassShare.Image);
            }
        }

    }
}
